package com.wutao.panzh.admin.service.Impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.panzh.entity.UserAdminInfo;
import com.wutao.panzh.admin.mapper.UserAdminInfoMapper;
import com.wutao.panzh.service.UserAdminServiceLgin;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 处理后台登录的handler
 */
@Service
public class UserAdminServiceLginImpl implements UserAdminServiceLgin {

    @Autowired
    private UserAdminInfoMapper userAdminInfoMapper;


    @Override
    public UserAdminInfo getUserAdminInfoBytel(String tel) {
        //采用一种神奇的方式来实现查找
        UserAdminInfo userAdminInfo = new UserAdminInfo();
        userAdminInfo.setPhoneNum(tel);
        return userAdminInfoMapper.selectOne(userAdminInfo);
    }
}
